package com.cn.crmsystem.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
@ApiModel(value = "User:员工实体类数据类型字段")
public class User implements Serializable{
    @ApiModelProperty("员工id")
    private Integer id;
    @ApiModelProperty("员工名字")
    private String name;
    @ApiModelProperty("电话号码")
    private String phone;
    @ApiModelProperty("性别(0:男;1:女)")
    private Integer sex;
    @ApiModelProperty("头像图片")
    private String user_head_img;
    @ApiModelProperty("当前用户状态(0:启用;1:禁用)")
    private Integer user_state;
    @ApiModelProperty("角色id")
    private Integer role_id;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("上次修改时间,不用传到后端")
    private Date last_change_time;
    @ApiModelProperty("删除状态(0:显示;1隐藏)")
    private Integer delete_state;
    @ApiModelProperty("部门编号id")
    private Integer dept_id;
    @ApiModelProperty("操作人编号,当前账号id")
    private Integer operator_id;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", sex=" + sex +
                ", user_head_img='" + user_head_img + '\'' +
                ", user_state=" + user_state +
                ", role_id=" + role_id +
                ", last_change_time=" + last_change_time +
                ", delete_state=" + delete_state +
                ", dept_id=" + dept_id +
                ", operator_id=" + operator_id +
                ", operator_name='" + operator_name + '\'' +
                ", department=" + department +
                ", role=" + role +
                '}';
    }

    @ApiModelProperty("操作人名字")
    private String operator_name;
    @ApiModelProperty("部门实体类对象")
    private  Department department;
    @ApiModelProperty("角色实体类对象")
    private  Role role;



    public String getOperator_name() {
        return operator_name;
    }

    public void setOperator_name(String operator_name) {
        this.operator_name = operator_name;
    }

    public Integer getOperator_id() {
        return operator_id;
    }

    public void setOperator_id(Integer operator_id) {
        this.operator_id = operator_id;
    }


    public Date getLast_change_time() {
        return last_change_time;
    }

    public void setLast_change_time(Date last_change_time) {
        this.last_change_time = last_change_time;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getUser_head_img() {
        return user_head_img;
    }

    public void setUser_head_img(String user_head_img) {
        this.user_head_img = user_head_img;
    }

    public Integer getUser_state() {
        return user_state;
    }

    public void setUser_state(Integer user_state) {
        this.user_state = user_state;
    }

    public Integer getRole_id() {
        return role_id;
    }

    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    public Integer getDelete_state() {
        return delete_state;
    }

    public void setDelete_state(Integer delete_state) {
        this.delete_state = delete_state;
    }

    public Integer getDept_id() {
        return dept_id;
    }

    public void setDept_id(Integer dept_id) {
        this.dept_id = dept_id;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}
